Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] APC charging state update for power cord feeders #986

Merged
merged 1 commit into from
Dec 6, 2023

Conversation

Steals-The-PRs
Copy link
Collaborator

Original PR: Skyrat-SS13/Skyrat-tg#25432

About The Pull Request

Synthetics can be fed from the APC through the power cable implant.

The thing is, if the APC is fully charged at the time, its status will be stuck at [fully charged] at the moment of power cord disconnecting and won't update to [charging] until someone unlocks the APC with a card and switches the charging mode, or something changes state of external power to the APC.

изображение

Instead of fiddling with apc_main.dm, I've added a simple check at the very end of the power cord feed loop that will check the status of the APC's external power and change its state to [charging] right when the power cord is unplugged. If for some reason there is no external power, the status will not change.

This could probably be done in a more elegant way, but it works.

How This Contributes To The Skyrat Roleplay Experience

Synthetic lizards can now accumulate those sweet joules without fear of frowning disapproval from the engineering team.
And without the risk of leaving some potentially important area of the station without power.

Proof of Testing

Screenshots/Videos
1.mp4
2.mp4

Changelog

🆑 vorpal-void
fix: yeah here we go, APC recharging, mission accomplished.
code: power_cord.dm, whooping 4 lines of code.
/:cl:

* Update power_cord.dm

* Update modular_skyrat/modules/synths/code/bodyparts/power_cord.dm

Co-authored-by: SomeRandomOwl <[email protected]>

* Update power_cord.dm

Including potential APC_LOW_POWER

---------

Co-authored-by: SomeRandomOwl <[email protected]>
@ReezeBL ReezeBL merged commit 6a76a2c into master Dec 6, 2023
23 checks passed
@ReezeBL ReezeBL deleted the upstream-mirror-25432 branch December 6, 2023 08:15
AnywayFarus added a commit that referenced this pull request Dec 6, 2023
Iajret pushed a commit that referenced this pull request Feb 17, 2024
* Blob Zombies Appear Correctly (#81485)

## About The Pull Request

Fixes #81414

This PR makes it so blob zombies no longer appear without their blob
heads. This bug made it extremely confusing to tell who was who for both
sides on a blob-coated battlefield.

## Why It's Good For The Game

This bug sucks and we shouldn't stand for its existence.

## Changelog
:cl:
fix: Blob Zombies now render their blob heads correctly again.
/:cl:

* Blob Zombies Appear Correctly

---------

Co-authored-by: IndieanaJones <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants